<%@ taglib uri="/WEB-INF/tlds/oscache.tld" prefix="oscache"%>
<%@ taglib uri="/WEB-INF/tlds/jpage.tld" prefix="jpage"%>
<%@ taglib uri="/WEB-INF/tlds/fmt.tld" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/tlds/c.tld" prefix="c"%>
<%@ page import="java.util.*"%>
<%@ page import="com.gzgi.framework.context.*"%>
<%@ page import="com.gzgi.framework.tree.*"%>
<%@ page import="com.gzgi.framework.tree.helper.*"%>
<%@ page import="com.gzgi.framework.sys.service.*"%>
<%@ page import="org.apache.commons.lang.StringUtils"%>
<oscache:cache key="basic_code_xyz" time="3600" scope="application">
	<%
     DataItemService dataItemService = (DataItemService)ContextFactory.getBean("dataItemService");
	 TreeNodeHelper treeNodeHelper = new TreeNodeHelper();
 
	 StringBuffer scriptBufferx = new StringBuffer();
 	 String script002 = dataItemService.generateJS(90);
	 String script004 = treeNodeHelper.generateJS("Modality");

	 if(script002 != null){
		 scriptBufferx.append(script002);
	 }

     if(script004 != null){
		 scriptBufferx.append(script004);
	 }

	 String appPathxy = this.getServletContext().getRealPath("");
	 String scriptPathxy = appPathxy + "/scripts/dataitem.js";
	 try{
	       com.gzgi.framework.util.FileTools.save(scriptPathxy,  scriptBufferx.toString().getBytes("UTF-8"));
	   } catch(Exception ex){
	 }
%>
	<script language="javascript"
		src="<%=request.getContextPath()%>/scripts/dataitem.js"></script>
	<script language="javascript"
		src="<%=request.getContextPath()%>/scripts/jpage_scripts.js"></script>
</oscache:cache>